package com.wanmait.wanmarecruit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
* Created by Mybatis Generator 2022/09/19
*/
@Data
@TableName(value = "company")
public class Company implements Serializable {
    /**
     * 企业id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 企业密码
     */
    @TableField(value = "pass")
    private String pass;

    /**
     * 企业名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 企业简介
     */
    @TableField(value = "introduction")
    private String introduction;

    /**
     * 所在省份
     */
    @TableField(value = "province_id")
    private Integer provinceId;
    @TableField(exist = false)
    private Province province;

    /**
     * 所在城市
     */
    @TableField(value = "city_id")
    private Integer cityId;
    @TableField(exist = false)
    private City city;

    /**
     * 所在行政区
     */
    @TableField(value = "district_id")
    private Integer districtId;
    @TableField(exist = false)
    private District district;

    /**
     * 企业地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 企业邮编
     */
    @TableField(value = "postcode")
    private String postcode;

    /**
     * 企业联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 企业邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 联系人
     */
    @TableField(value = "contact_person")
    private String contactPerson;

    /**
     * 企业注册日期
     */
    @TableField(value = "enroll_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enrollTime;

    /**
     * 企业头像
     */
    @TableField(value = "face")
    private String face;

    /**
     * 企业状态
     */
    @TableField(value = "enable")
    private Boolean enable;

    /**
     * 公司性质id
     */
    @TableField(value = "company_nature_id")
    private Integer companyNatureId;
    @TableField(exist = false)
    private CompanyNature companyNature;

    /**
     * 公司规模id
     */
    @TableField(value = "company_size_id")
    private Integer companySizeId;
    @TableField(exist = false)
    private CompanySize companySize;

    /**
     * 法人代表
     */
    @TableField(value = "legal_representative")
    private String legalRepresentative;

    /**
     * 注册资本
     */
    @TableField(value = "registered_capital")
    private String registeredCapital;

    /**
     * 成立日期
     */
    @TableField(value = "creation_date")
    private Date creationDate;

    /**
     * 在招职位数量
     */
    @TableField(value = "position_count")
    private Integer positionCount;

    /**
     * 公司图标
     */
    @TableField(value = "company_logo")
    private String companyLogo;

    /**
     * 是否热门
     */
    @TableField(value = "hot")
    private Boolean hot;

    /**
     * 公司类别Id
     */
    @TableField(value = "position_type_id")
    private Integer positionTypeId;
    @TableField(exist = false)
    private PositionType positionType;

    private static final long serialVersionUID = 1L;

    public static final String COL_PASS = "pass";

    public static final String COL_NAME = "name";

    public static final String COL_INTRODUCTION = "introduction";

    public static final String COL_PROVINCE_ID = "province_id";

    public static final String COL_CITY_ID = "city_id";

    public static final String COL_DISTRICT_ID = "district_id";

    public static final String COL_ADDRESS = "address";

    public static final String COL_POSTCODE = "postcode";

    public static final String COL_PHONE = "phone";

    public static final String COL_EMAIL = "email";

    public static final String COL_CONTACT_PERSON = "contact_person";

    public static final String COL_ENROLL_TIME = "enroll_time";

    public static final String COL_FACE = "face";

    public static final String COL_ENABLE = "enable";

    public static final String COL_COMPANY_NATURE_ID = "company_nature_id";

    public static final String COL_COMPANY_SIZE_ID = "company_size_id";

    public static final String COL_LEGAL_REPRESENTATIVE = "legal_representative";

    public static final String COL_REGISTERED_CAPITAL = "registered_capital";

    public static final String COL_CREATION_DATE = "creation_date";

    public static final String COL_POSITION_COUNT = "position_count";
}